﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;

namespace BUS
{
    public class RoomMemberBUS
    {
        RoomMemberDAO roomMemberDAO = new RoomMemberDAO();

        public void AddRoomMember(RoomMember member)
        {
            roomMemberDAO.AddRoomMember(member);
        }

        public IEnumerable<ChatRoom> GetChatRooms(int userId)
        {
            return roomMemberDAO.GetChatRooms(userId);
        }

        public bool DeleteRoomMember(int userId)
        {
            return roomMemberDAO.DeleteRoomMember(userId);
        }
    }
}
